Skip to main content

All Questions

0votes
1answer
39views

An unhandled exception occurred while processing the request when Scaffolding an Entity

To give you some context: I am currently working on a simple CRUD Scaffolded MVC table. And I am having trouble Implementing the Relationships. Simple independent tables work just fine as is just ...
yzkael's user avatar
0votes
1answer
56views

How to dynamically add and remove multiple forms for the same model in ASP.NET MVC?

I am building a monthly budget app using ASP.NET MVC, and I want to allow users to create multiple income entries at the same time (maximum of 5 forms on larger screens and 3 on smaller screens). ...
NicolasMartinezK's user avatar
-1votes
1answer
71views

Unable to send the List of model data to a view using asp.net mvc

I have a List<string> stored in local storage and I'm getting those values using javascript and sending it to a POST method of my controller using an AJAX call. In the controller of the POST ...
vinaya Shetty's user avatar
-1votes
1answer
50views

i want text of label when it in datalist

in .net , i have a problem . i want the text of label in datalist and i cant use id because its in datalist and its id is not available in c# or js .i don't can use for to find lable in datalist my ...
amir aabas rafighi's user avatar
0votes
0answers
83views

MVC .NET Core Localization Dynamic

I have added a multi-language option to my site using MVC .NET Core localization. However, I believe this will be problematic in the dynamic areas of the site. I don't want to resort to file ...
Eray Genç's user avatar
0votes
0answers
32views

I Can't sign in with HtmlContext.Session in .Net 8.0

I can not sign in with using htmlcontext.session, it redirects me again in log in page. I have searched many articles in online but nothing solved my problem and I do not want to use JWT Token for ...
codAction's user avatar
0votes
0answers
55views

ASP.NET Core 8 : Type on ViewDataDictionary

I have this problem : InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.Collections.Generic.List`1[BookingPortal.Models.ViewModels.WarehouseViewModel]', ...
MarcoD's user avatar
0votes
1answer
335views

Multiple models in one view ASP.net core mvc

Good day. I encountered a problem while developing an asp.net core mvc application. The fact is that I have a Dashboard page for which the data is taken from the @model DashboardPageViewModel. Also, ...
ch0va's user avatar
0votes
0answers
55views

C# Asp.Net MVC Core - Why does my ErrorController never use the HttpStatusCodeHandler action?

I have a C# Asp.Net MVC Core (.Net 8.0) web application. I have built an ErrorController to handle any error status codes that occur, as follows: public class ErrorController : Controller { private ...
Goober's user avatar
  • 13.5k
0votes
1answer
244views

Passing complex objects from javascript to MVC controller using fetch

I have a controller method: [HttpPost] public async Task<IActionResult> GetTextFromPos(int id,Position position) { if (position==null || _context.Batches == null) ...
Adam Kotvas's user avatar
-2votes
1answer
536views

How do i retrieve IFormFile from API and display it in view? i want the image(s) to be displayed in view

how do i successfully retrieve IFormFile from the server side API and display it in my view image source. I was wondering why what i did never worked until i realize that i was using the path i saved ...
Alva Mira's user avatar
0votes
1answer
640views

ASP.NET Core Model Binding Not Working for No Apparent Reason

I am trying to bind a model to a view (more specifically, a partial view). When I debug the code, I can clearly see the correct object being passed to the view, but in browser DevTools, I see the ...
Emre Bener's user avatar
0votes
0answers
39views

ASP.NET Core MVC: Selected Values Not Displaying in Dropdown Lists

I'm working on an ASP.NET Core MVC application, and I'm facing an issue with dropdown lists. Specifically, I have dropdown lists for "Company" and "Department" in an Edit view, and ...
wana isa's user avatar
0votes
2answers
116views

problem with rendering MathML tags inside asp.net core view

hi everybody i want to render MathMl tags inside view but they dont render properly these are my javascript libraries @section Styles { <script type="text/x-mathjax-config"> ...
reza setareh's user avatar
1vote
0answers
55views

How to not overwrite the reference if it has an existing record in database everytime I update?

I am trying to implement an edit button to my project but everytime I update the existing record it keeps overwriting the existing Reference ID. My problem is how to not overwrite the existing ...
YoRemm's user avatar

153050per page
close